﻿<Window x:Class="WPFTrees.ColorsDlg"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Colors" Height="265" Width="300" ShowInTaskbar="False" ResizeMode="NoResize"> 
    <Window.Resources>
        <Style x:Key="myStyle" TargetType="{x:Type Button}">
            <Setter  Property="Padding" Value="0" />            
        </Style>

    </Window.Resources>
    
    <Grid Height="219">
        <Grid.RowDefinitions>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="50"></RowDefinition>
            <RowDefinition Height="111*" />
        </Grid.RowDefinitions>
        
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Row="0" Grid.Column="0">Leaf color:</TextBlock>
        <Rectangle Grid.Column="1" Height="29" HorizontalAlignment="Left" Margin="7,12,0,0" Name="rectLeafColor" Stroke="Black" VerticalAlignment="Top" Width="79" />
        <Button Margin="10 15 10 10" Style="{StaticResource myStyle}" Grid.Column="2" Click="btnLeafColor_Click">Change...</Button>
        <TextBlock Grid.Row="1" Grid.Column="0">Leaf label color:</TextBlock>
        <Rectangle Height="29" HorizontalAlignment="Left" Margin="7,17,0,0" Name="rectLeafLabelColor" Stroke="Black" VerticalAlignment="Top" Width="79" Grid.Column="1" Grid.Row="1" />
        <Button Margin="10 15 10 10" Grid.Row="1"  Style="{StaticResource myStyle}" Click="btnLeafLabelColor_Click" Grid.Column="2">Change...</Button>
        <TextBlock Grid.Row="2" Grid.Column="0">Background color:</TextBlock>
        <Rectangle Height="29" HorizontalAlignment="Left" Margin="7,17,0,0" Name="rectBackgroundColor" Stroke="Black" VerticalAlignment="Top" Width="79" Grid.Column="1" Grid.Row="2" />
        <Button Margin="10 15 10 10" Grid.Row="2"  Style="{StaticResource myStyle}" Grid.Column="2" Click="btnBackgroundColor_Click">Change...</Button>
        
        <Button Padding="0"  Style="{StaticResource myStyle}" Click="Button_Click_1" IsDefault="True" Grid.ColumnSpan="2" Margin="48,24,64,20" Grid.Row="3">OK</Button>
        <Button Grid.Column="1" Padding="0"  Style="{StaticResource myStyle}" IsCancel="True" Click="Button_Click" Grid.ColumnSpan="2" Margin="71,24,35,20" Grid.Row="3">Cancel</Button>
        
        
    </Grid>
</Window>
